package com.renchi.menu.common2.paging;

//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
import java.util.HashMap;
import java.util.Map;

public class Result {
    private String message;
    private boolean success;
    private Map<String, Object> params;

    public Result() {
    }

    public Result(boolean success) {
        this.success = success;
    }

    public Result(Map<String, Object> params) {
        this.params = params;
    }

    public Result(String message, boolean success) {
        this.message = message;
        this.success = success;
    }

    public String getMessage() {
        return this.message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean getSuccess() {
        return this.success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public Map<String, Object> getParams() {
        return this.params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }

    public void push(Object value, String key) {
        if (this.params == null) {
            this.params = new HashMap();
        }

        this.params.put(key, value);
    }
}
